package org.smile.homework01.kevin.WithDrawMoney;

public abstract class Approver {                //决策抽象类--包含请求处理的函数和指定下一个决策者的函数
Approver successor;    //定义继承人
    String name;       //成员变量
    public Approver(String name) {
        this.name = name;
    }
    public abstract void ProcessRequest(PurchaseRequest request);

    public void setSuccessor(Approver successor) { this.successor = successor; }   //设置继承人的方法
}
